import React from 'react'

import './preview-panel.less'

export interface PreviewPanelProps {
  /** 预览图片地址 */
  src?: string
}

export const PreviewPanel: React.FC<PreviewPanelProps> = ({ src }) => {
  return (
    <div className="preview-panel">
      {src ? <img src={src} className="img" /> : null}
    </div>
  )
}
